Socket
Socket
Sign inDemoInstall

lodash.startcase

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.startcase

The lodash method `_.startCase` exported as a module.


Version published
Weekly downloads
3.5M
decreased by-2.95%
Maintainers
5
Weekly downloads
 
Created

What is lodash.startcase?

The lodash.startcase package is a utility function from the Lodash library that converts a string to start case. Start case is a string format where the first letter of each word is capitalized, and the words are separated by spaces.

What are lodash.startcase's main functionalities?

Convert string to start case

This feature converts a given string to start case, where the first letter of each word is capitalized and words are separated by spaces.

const startCase = require('lodash.startcase');
const result = startCase('hello world');
console.log(result); // 'Hello World'

Handle different string formats

This feature demonstrates the ability to handle different string formats such as snake_case and kebab-case, converting them to start case.

const startCase = require('lodash.startcase');
const result = startCase('foo_bar-baz');
console.log(result); // 'Foo Bar Baz'

Handle mixed case strings

This feature shows how the function can handle mixed case strings, converting them to start case.

const startCase = require('lodash.startcase');
const result = startCase('fooBarBaz');
console.log(result); // 'Foo Bar Baz'

Other packages similar to lodash.startcase

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc